﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace XZTZ.UMP.Public.Models.Base
{
    [Table("Base_DeparmentInfo")]
    public class DeparmentInfo
    {
        [Key]
        [DisplayName("部门ID")]
        public Guid guidDepartmentID { get; set; }
        [DisplayName("单位ID")]
        public Guid guidCompanyID { get; set; }
        [DisplayName("单位信息")]
        public virtual CompanyInfo CompanyInfo { get; set; }
        [DisplayName("部门名称")]
        public string strDepartmentName { get; set; }
        [DisplayName("部门编制")]
        public string strEstablishment { get; set; }
        [DisplayName("主管人员")]
        public string strGovernor { get; set; }
        [DisplayName("联系电话")]
        [DataType(DataType.PhoneNumber)]
        public string strPhone { get; set; }
        [DisplayName("传真")]
        public string strFax { get; set; }
        [DisplayName("联系人")]
        public string strLinkMan { get; set; }
        [DisplayName("修改时间")]
        [DataType(DataType.Date)]
        public DateTime dtmOperateDate { get; set; }
        [DisplayName("备注")]
        public string strNote { get; set; }
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DisplayName("索引")]
        [NotMapped]//只读
        public int intIndexNo { get; set; }
        [DisplayName("是否禁用")]
        public bool blnTabooFlag { get; set; }

    }
}
